In [2]:
import json
from IPython import display
from CesiumWidget import CesiumWidget
If the installation of Cesiumjs is ok, it should be reachable here.
Great, let's create a CesiumWidget
!
In [3]:
cesium = CesiumWidget()
Display the widget:
In [4]:
cesium
You can change many settings of the widget:
In [5]:
cesium.class_own_traits()
Out[5]:
Let's turn on lighting: let there be light!
In [5]:
cesium.enable_lighting = True
Load data for the viewer to display in the CZML format, which is based on JSON. It always expects a list of Packet objects.
In [6]:
from CesiumWidget.examples.iss import ISS
cesium.czml = ISS
You can also use the excellent czml
module to generate valid CZML: see an example here.